﻿<%@ Import Namespace="WineCellar.Business.Entities"%>
<%@ Import Namespace="System.Web.Mvc.Html"%>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WineEdit.ascx.cs" Inherits="WineCellar.Web.Views.Wine.WineEdit" %>

<div id="WineFormErrorsummary"></div>

<form id="WineForm" action="" method="post">

<fieldset>
    <legend>Wine details</legend>
    <div style="float:left;width: 400px">
        <p>
            <label>Name<span class="reqMark">*</span></label>
            <%=Html.TextBox("Name",ViewData.Model.Wine.Name, new {@class = "required"}) %>
        </p>
        <p>
            <label>Producer</label>
            <%=Html.TextBox("Producer",ViewData.Model.Wine.Producer) %>
        </p>     
        <p>
            <label>Appelation</label>
            <%=Html.TextBox("Appelation", ViewData.Model.Wine.Appelation)%>
        </p>         
         <p>
            <label>ColorType</label>
            <%=Html.TextBox("ColorType", ViewData.Model.Wine.ColorType)%>
        </p>
        <p>
            <label>Region</label>
            <%=Html.DropDownList("Region",ViewData.Model.Regions, new {@class = "required"}) %>
        </p>
    </div>
    
</fieldset>
<br />
<input type="button" id="WineEditSaveButton" value="Save" onclick="return false;"/>
<input type="button" id="WineEditCancelButton" value="Cancel" onclick="return false;" />

</form>
